lock block การใช้
- You take the grip off, and our lock blocks the hammer stirrup so the hammer can't move ."
- Locks block data-access operations.
- If a first lock blocks another lock, the two locks are called " incompatible "; otherwise the locks are " compatible ".
- As the Java library does not know which methods will be used by more than one thread, the standard library always locks blocks when needed in a multithreaded environment.
- Finally, blocking by a lock ( which has been excluded so far ) needs to be considered : A lock blocks a conflicting operation and prevents a conflict from being materialized.